﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PersonManager
{
    public class Person
    {
        private string name;
        private int? age;

        public string Name
        {
            get { return this.name; }
        }
        public int? Age
        {
            get { return this.age; }
        }

        public Person(string name, int? age = null)
        {
            this.name = name;
            this.age = age;
        }

        public override string ToString()
        {
            if (this.Age != null)
            {
                return String.Format("Name: {0}, Age: {1}", this.Name, this.Age);
            }
            else
            {
                return String.Format("Name: {0}, Age: Not Specified", this.Name);
            }
        } 

    }
}
